Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

frontend/templatetags: Add handling for missing status #1107

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

katieworton
Copy link
Member

If status was missing, this would previously cause a 500 error when loading the page, due to a RelatedObjectDoesNotExist error being raised when the project status function was called.

Now, add handling for the case where status is None, so the project_status will return None instead of raising an error.

@katieworton
Copy link
Member Author

@chaws Let me know how this looks 👍

If status was missing, this would previously cause a 500 error when
loading the page, due to a RelatedObjectDoesNotExist error being raised
when the project status function was called.

Now, add handling for the case where status is None, so the
project_status will return None instead of raising an error.

Signed-off-by: Katie Worton <[email protected]>
Copy link
Collaborator

@chaws chaws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chaws chaws merged commit a9d04e0 into Linaro:master Oct 19, 2023
7 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants